package com.ruoyi.project.wechatprogram.orderdescription.mapper;

import com.ruoyi.project.wechatprogram.orderdescription.domain.WxOrderDescription;
import com.ruoyi.project.wechatprogram.ordermaster.domain.WxOrderMaster;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 餐品订单详情Mapper接口
 * 
 * @author sxchen
 * @date 2020-04-21
 */
public interface WxOrderDescriptionMapper 
{
    /**
     * 查询餐品订单详情
     * 
     * @param id 餐品订单详情ID
     * @return 餐品订单详情
     */
    public WxOrderDescription selectWxOrderDescriptionById(Integer id);

    /**
     * 查询餐品订单详情列表
     * 
     * @param wxOrderDescription 餐品订单详情
     * @return 餐品订单详情集合
     */
    public List<WxOrderDescription> selectWxOrderDescriptionList(WxOrderDescription wxOrderDescription);

    /**
     * 新增餐品订单详情
     * 
     * @param wxOrderDescription 餐品订单详情
     * @return 结果
     */
    public int insertWxOrderDescription(WxOrderDescription wxOrderDescription);

    /**
     * 新增餐品订单详情，批量插入
     *
     * @param wxOrderDescriptionList 餐品订单
     * @return 结果
     */
    public int insertBatchWxOrderDes(@Param("wxOrderDescriptionList") List<WxOrderDescription> wxOrderDescriptionList);

    /**
     * 修改餐品订单详情
     * 
     * @param wxOrderDescription 餐品订单详情
     * @return 结果
     */
    public int updateWxOrderDescription(WxOrderDescription wxOrderDescription);

    /**
     * 删除餐品订单详情
     * 
     * @param id 餐品订单详情ID
     * @return 结果
     */
    public int deleteWxOrderDescriptionById(Integer id);

    /**
     * 批量删除餐品订单详情
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWxOrderDescriptionByIds(String[] ids);
}
